package com.luozy.common.clients;

import com.luozy.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserClient {

    //远程调用 根据地址id查询地址接口
    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable Long id);
}
